package com.uzai.console.entity;

import com.uzai.common.entity.BaseEntity;

/**
 * 京东订单表
 * 
 * @author liuqi
 * @email sunlightcs@gmail.com
 * @date 2021-09-08 14:56:31
 */
public class JdOrder extends BaseEntity {

	private static final long serialVersionUID = 4549272265301270063L;

	/**
	 * 运营商ID
	 */
	private Long merId;
	/**
	 * 父订单号
	 */
	private String parentOrderNo;
	/**
	 * 子订单号
	 */
	private String childOrderNo;
	/**
	 * 商品ID
	 */
	private String itemId;
	/**
	 * 商品标题
	 */
	private String title;
	/**
	 * 商品单价
	 */
	private Double price;
	/**
	 * 商品主图链接
	 */
	private String imageUrl;
	/**
	 * 商品数量
	 */
	private Integer num;
	/**
	 * 一级类目ID
	 */
	private Long cid1;
	/**
	 * 二级类目ID
	 */
	private Long cid2;
	/**
	 * 三级类目ID
	 */
	private Long cid3;
	/**
	 * 一级类目名称
	 */
	private String cateName1;
	/**
	 * 二级类目名称
	 */
	private String cateName2;
	/**
	 * 三级类目名称
	 */
	private String cateName3;
	/**
	 * 店铺ID
	 */
	private Long shopId;
	/**
	 * 下单用户是否为PLUS会员 0：否，1：是
	 */
	private Integer plus;
	/**
	 * 下单设备(1:PC,2:无线)
	 */
	private Integer orderEmt;
	/**
	 * 京东订单有效码(用于记录，具体值得含义参考京东订单接口)
	 */
	private Integer validCode;
	/**
	 * 付款金额
	 */
	private Double payment;
	/**
	 * 佣金比例
	 */
	private Double commissionRate;
	/**
	 * 佣金
	 */
	private Double commission;
	/**
	 * 创建时间(orderTime 下单时间)
	 */
	private Integer createdt;
	/**
	 * 完成时间(finishTime 订单完成时间)
	 */
	private Integer finishdt;
	/**
	 * 结算时间
	 */
	private Integer accountdt;
	/**
	 * 京东联盟unionId
	 */
	private String unionId;
	/**
	 * 推广位
	 */
	private String pid;
	/**
	 * 订单状态(0订单付款 1订单结算 2订单失效 3维权中 4维权成功 5维权失败 6订单成功 7失效拆单)
	 */
	private Integer status;
	/**
	 * 返利状态 （0未返利 1已返利 2回收返利 3返利冻结）
	 */
	private Integer reStatus;
	/**
	 * 用户id
	 */
	private Long userId;
	/**
	 * 昵称
	 */
	private String nickName;
	/**
	 * 业务端用户id，如wxid,openid
	 */
	private String bizUserId;
	/**
	 * 设备id
	 */
	private Long deviceUniqueId;
	/**
	 * 设备类型（如微信、公众号）
	 */
	private String deviceType;
	/**
	 * 奖励给用户得积分
	 */
	private Integer reUserInte;
	/**
	 * 用户得到的返利金额
	 */
	private Double reUserBal;
	/**
	 * 合伙人得到的提成金额
	 */
	private Double rePartnerBal;
	/**
	 * 代理得到的提成金额
	 */
	private Double reAgentBal;
	/**
	 * 上级代理得到的提成金额
	 */
	private Double reSlAgentBal;
	/**
	 * 上级得到的提成金额
	 */
	private Double reParentBal;
	/**
	 * 上上级得到的提成金额
	 */
	private Double reSlParentBal;
	/**
	 * 其他角色提成金额
	 */
	private Double reOtherBal;
	/**
	 * 利润
	 */
	private Double profit;
	/**
	 * 分佣明细
	 */
	private String reInfo;
	/**
	 * 群微信id
	 */
	private String sourceWxid;
	/**
	 * 解冻时间
	 */
	private Integer unfreezeTime;
	/**
	 * 0非免单，1免单
	 */
	private Integer free;
	/**
	 * 是否是新用户订单（杀熟）：0否，1是
	 */
	private Integer newUserOrder;
	/**
	 * 订单来源（0 PC个人微信，1 安卓手机个人微信,2 PC企业微信,3 Ipad协议个人微信,4 CMS, 5 小程序, 6 公众号）
	 */
	private Integer orderSource;
	/**
	 * 同跨店：0影响 1直接2同店 3跨店
	 */
	private Integer traceType;
	/**
	 * 删除状态(0-未删除；1-已删除）
	 */
	private Integer delStatus;
	/**
	 * 维权完成时间
	 */
	private Integer refundFinishTime;
	/**
	 * 版本号
	 */
	private Integer version;

	/**
	 *
	 * 订单其他备注
	 */
	private String remark;

	/**
	 *
	 * 店铺名称
	 */
	private String shopName;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Long getMerId() {
		return merId;
	}

	public void setMerId(Long merId) {
		this.merId = merId;
	}

	public String getParentOrderNo() {
		return parentOrderNo;
	}

	public void setParentOrderNo(String parentOrderNo) {
		this.parentOrderNo = parentOrderNo;
	}

	public String getChildOrderNo() {
		return childOrderNo;
	}

	public void setChildOrderNo(String childOrderNo) {
		this.childOrderNo = childOrderNo;
	}

	public String getItemId() {
		return itemId;
	}

	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Long getCid1() {
		return cid1;
	}

	public void setCid1(Long cid1) {
		this.cid1 = cid1;
	}

	public Long getCid2() {
		return cid2;
	}

	public void setCid2(Long cid2) {
		this.cid2 = cid2;
	}

	public Long getCid3() {
		return cid3;
	}

	public void setCid3(Long cid3) {
		this.cid3 = cid3;
	}

	public String getCateName1() {
		return cateName1;
	}

	public void setCateName1(String cateName1) {
		this.cateName1 = cateName1;
	}

	public String getCateName2() {
		return cateName2;
	}

	public void setCateName2(String cateName2) {
		this.cateName2 = cateName2;
	}

	public String getCateName3() {
		return cateName3;
	}

	public void setCateName3(String cateName3) {
		this.cateName3 = cateName3;
	}

	public Long getShopId() {
		return shopId;
	}

	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}

	public Integer getPlus() {
		return plus;
	}

	public void setPlus(Integer plus) {
		this.plus = plus;
	}

	public Integer getOrderEmt() {
		return orderEmt;
	}

	public void setOrderEmt(Integer orderEmt) {
		this.orderEmt = orderEmt;
	}

	public Integer getValidCode() {
		return validCode;
	}

	public void setValidCode(Integer validCode) {
		this.validCode = validCode;
	}

	public Double getPayment() {
		return payment;
	}

	public void setPayment(Double payment) {
		this.payment = payment;
	}

	public Double getCommissionRate() {
		return commissionRate;
	}

	public void setCommissionRate(Double commissionRate) {
		this.commissionRate = commissionRate;
	}

	public Double getCommission() {
		return commission;
	}

	public void setCommission(Double commission) {
		this.commission = commission;
	}

	public Integer getCreatedt() {
		return createdt;
	}

	public void setCreatedt(Integer createdt) {
		this.createdt = createdt;
	}

	public Integer getFinishdt() {
		return finishdt;
	}

	public void setFinishdt(Integer finishdt) {
		this.finishdt = finishdt;
	}

	public Integer getAccountdt() {
		return accountdt;
	}

	public void setAccountdt(Integer accountdt) {
		this.accountdt = accountdt;
	}

	public String getUnionId() {
		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getReStatus() {
		return reStatus;
	}

	public void setReStatus(Integer reStatus) {
		this.reStatus = reStatus;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getBizUserId() {
		return bizUserId;
	}

	public void setBizUserId(String bizUserId) {
		this.bizUserId = bizUserId;
	}

	public Long getDeviceUniqueId() {
		return deviceUniqueId;
	}

	public void setDeviceUniqueId(Long deviceUniqueId) {
		this.deviceUniqueId = deviceUniqueId;
	}

	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}

	public Integer getReUserInte() {
		return reUserInte;
	}

	public void setReUserInte(Integer reUserInte) {
		this.reUserInte = reUserInte;
	}

	public Double getReUserBal() {
		return reUserBal;
	}

	public void setReUserBal(Double reUserBal) {
		this.reUserBal = reUserBal;
	}

	public Double getRePartnerBal() {
		return rePartnerBal;
	}

	public void setRePartnerBal(Double rePartnerBal) {
		this.rePartnerBal = rePartnerBal;
	}

	public Double getReAgentBal() {
		return reAgentBal;
	}

	public void setReAgentBal(Double reAgentBal) {
		this.reAgentBal = reAgentBal;
	}

	public Double getReSlAgentBal() {
		return reSlAgentBal;
	}

	public void setReSlAgentBal(Double reSlAgentBal) {
		this.reSlAgentBal = reSlAgentBal;
	}

	public Double getReParentBal() {
		return reParentBal;
	}

	public void setReParentBal(Double reParentBal) {
		this.reParentBal = reParentBal;
	}

	public Double getReSlParentBal() {
		return reSlParentBal;
	}

	public void setReSlParentBal(Double reSlParentBal) {
		this.reSlParentBal = reSlParentBal;
	}

	public Double getReOtherBal() {
		return reOtherBal;
	}

	public void setReOtherBal(Double reOtherBal) {
		this.reOtherBal = reOtherBal;
	}

	public Double getProfit() {
		return profit;
	}

	public void setProfit(Double profit) {
		this.profit = profit;
	}

	public String getReInfo() {
		return reInfo;
	}

	public void setReInfo(String reInfo) {
		this.reInfo = reInfo;
	}

	public String getSourceWxid() {
		return sourceWxid;
	}

	public void setSourceWxid(String sourceWxid) {
		this.sourceWxid = sourceWxid;
	}

	public Integer getUnfreezeTime() {
		return unfreezeTime;
	}

	public void setUnfreezeTime(Integer unfreezeTime) {
		this.unfreezeTime = unfreezeTime;
	}

	public Integer getFree() {
		return free;
	}

	public void setFree(Integer free) {
		this.free = free;
	}

	public Integer getNewUserOrder() {
		return newUserOrder;
	}

	public void setNewUserOrder(Integer newUserOrder) {
		this.newUserOrder = newUserOrder;
	}

	public Integer getOrderSource() {
		return orderSource;
	}

	public void setOrderSource(Integer orderSource) {
		this.orderSource = orderSource;
	}

	public Integer getTraceType() {
		return traceType;
	}

	public void setTraceType(Integer traceType) {
		this.traceType = traceType;
	}

	public Integer getDelStatus() {
		if(delStatus == null){
			delStatus = 0;
		}
		return delStatus;
	}

	public void setDelStatus(Integer delStatus) {
		this.delStatus = delStatus;
	}

	public Integer getRefundFinishTime() {
		return refundFinishTime;
	}

	public void setRefundFinishTime(Integer refundFinishTime) {
		this.refundFinishTime = refundFinishTime;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}
}
